package com.glela.firewall.beans;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by liujie 
 */
public class FirewallLog implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -6735830539241907070L;
	private String ip;
    private String guestId;
    private String url;
    private Date time;
    private String agent;
    private int filterType; // 1. 验证允许通过 2. 白名单允许通过  3. 验证不允许通过  4. 黑名单不允许通过  5. 未验证允许通过

    private String platform;
    private String channel;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getGuestId() {
        return guestId;
    }

    public void setGuestId(String guestId) {
        this.guestId = guestId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public int getFilterType() {
        return filterType;
    }

    public void setFilterType(int filterType) {
        this.filterType = filterType;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("FirewallLog{");
        sb.append("ip='").append(ip).append('\'');
        sb.append(", guestId='").append(guestId).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", time=").append(time);
        sb.append(", agent='").append(agent).append('\'');
        sb.append(", filterType=").append(filterType);
        sb.append(", platform='").append(platform).append('\'');
        sb.append(", channel='").append(channel).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
